import store from "@/store";
import router from "./index";
// import store from "../store";

router.beforeEach(function (to, from, next) {
  if (to.meta.keepAlive) {
    console.log(to.path);
    store.commit("sys/addTags", to);
  }
  next();
});
export default router;
